package HP.yrr.p1;

public abstract class Pet implements EatAndPlay {
    /**
     * 宠物
     * 属性
     * 健康值
     * 亲密度
     * 年龄
     * 名字
     */
    private String name;
    private int age;
    private int healthy;
    private int love;

    public Pet() {
    }

    public Pet(String name, int age, int healthy, int love) {
        this.name = name;
        this.age = age;
        this.healthy = healthy;
        this.love = love;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getHealthy() {
        return healthy;
    }

    public void setHealthy(int healthy) {
        this.healthy = healthy;
    }

    public int getLove() {
        return love;
    }

    public void setLove(int love) {
        this.love = love;
    }

    @Override
    public String toString() {
        return "Pet{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", healthy=" + healthy +
                ", love=" + love +
                '}';
    }
}
